﻿using System.Text;

namespace iMarkdown.Blocks;

public class QuoteBlock : Block
{
    public List<Block> Blocks { get; init; } = [];
    public override string ToHtml()
    {
        var builder = new StringBuilder();
        foreach (var block in Blocks)
        {
            builder.Append(block.ToHtml());
        }
        return $"<div class=\"ref\">{builder}</div>";
    }
}